package fy.mdm.bean;

import org.json.JSONException;
import org.json.JSONObject;

public class NewFinBean {
	private String planid;
	private String factory_id;// 本厂编号
	private String plan_number;// 计划数量
	private String taking_number;// 取出数量
	private String line_Number;// 行号
	private String factory;// 工厂
	private String product_Name;// 名称产品
	private String plan_Date;// 计划日期
	private String part_number;// 零件号
	private String box_Identifier;// 混箱标识
	private String buckle_number;// 成品扣库数量
	private String limit;// 行_允差下限
	private String ceiling;// 行_允差上限
	private String procurement;// 是否采购
	private String pieces_number;// 每箱片数
	private String department;// 请求部门
	private String planned_inventory;// 计划库存组织
	private String packing_material;// 包装材质
	private String customer_number;// 客户号
	private String customer_name;// 客户名称
	private String shipping_address;// 发运地址
	private String tolerance_limit;// 允差下限
	private String upper_tolerance;// 允差上限

	public String getFactory_id() {
		return factory_id;
	}

	public void setFactory_id(String factory_id) {
		this.factory_id = factory_id;
	}

	public String getPlan_number() {
		return plan_number;
	}

	public void setPlan_number(String plan_number) {
		this.plan_number = plan_number;
	}

	public String getTaking_number() {
		return taking_number;
	}

	public void setTaking_number(String taking_number) {
		this.taking_number = taking_number;
	}

	public String getPlanid() {
		return planid;
	}

	public void setPlanid(String planid) {
		this.planid = planid;
	}

	public String getDepartment() {
		return department;
	}

	public void setDepartment(String department) {
		this.department = department;
	}

	public String getPlanned_inventory() {
		return planned_inventory;
	}

	public void setPlanned_inventory(String planned_inventory) {
		this.planned_inventory = planned_inventory;
	}

	public String getPacking_material() {
		return packing_material;
	}

	public void setPacking_material(String packing_material) {
		this.packing_material = packing_material;
	}

	public String getCustomer_number() {
		return customer_number;
	}

	public void setCustomer_number(String customer_number) {
		this.customer_number = customer_number;
	}

	public String getCustomer_name() {
		return customer_name;
	}

	public void setCustomer_name(String customer_name) {
		this.customer_name = customer_name;
	}

	public String getShipping_address() {
		return shipping_address;
	}

	public void setShipping_address(String shipping_address) {
		this.shipping_address = shipping_address;
	}

	public String getTolerance_limit() {
		return tolerance_limit;
	}

	public void setTolerance_limit(String tolerance_limit) {
		this.tolerance_limit = tolerance_limit;
	}

	public String getUpper_tolerance() {
		return upper_tolerance;
	}

	public void setUpper_tolerance(String upper_tolerance) {
		this.upper_tolerance = upper_tolerance;
	}

	public String getLine_Number() {
		return line_Number;
	}

	public void setLine_Number(String line_Number) {
		this.line_Number = line_Number;
	}

	public String getFactory() {
		return factory;
	}

	public void setFactory(String factory) {
		this.factory = factory;
	}

	public String getProduct_Name() {
		return product_Name;
	}

	public void setProduct_Name(String product_Name) {
		this.product_Name = product_Name;
	}

	public String getPlan_Date() {
		return plan_Date;
	}

	public void setPlan_Date(String plan_Date) {
		this.plan_Date = plan_Date;
	}

	public String getPart_number() {
		return part_number;
	}

	public void setPart_number(String part_number) {
		this.part_number = part_number;
	}

	public String getBox_Identifier() {
		return box_Identifier;
	}

	public void setBox_Identifier(String box_Identifier) {
		this.box_Identifier = box_Identifier;
	}

	public String getBuckle_number() {
		return buckle_number;
	}

	public void setBuckle_number(String buckle_number) {
		this.buckle_number = buckle_number;
	}

	public String getLimit() {
		return limit;
	}

	public void setLimit(String limit) {
		this.limit = limit;
	}

	public String getCeiling() {
		return ceiling;
	}

	public void setCeiling(String ceiling) {
		this.ceiling = ceiling;
	}

	public String getProcurement() {
		return procurement;
	}

	public void setProcurement(String procurement) {
		this.procurement = procurement;
	}

	public String getPieces_number() {
		return pieces_number;
	}

	public void setPieces_number(String pieces_number) {
		this.pieces_number = pieces_number;
	}

	public String getID() {
		return new StringBuilder().append("planid").append(planid).toString();
	}

	public JSONObject getJSONObject() throws JSONException {
		JSONObject jo = new JSONObject();
		jo.put("factory_id", factory_id);
		jo.put("plan_number", plan_number);
		jo.put("line_Number", line_Number);
		jo.put("factory", factory);
		jo.put("product_Name", product_Name);
		jo.put("plan_Date", plan_Date);
		jo.put("part_number", part_number);
		jo.put("box_Identifier", box_Identifier);
		jo.put("buckle_number", buckle_number);
		jo.put("limit", limit);
		jo.put("ceiling", ceiling);
		jo.put("procurement", procurement);
		jo.put("pieces_number", pieces_number);
		jo.put("department", department);
		jo.put("planned_inventory", planned_inventory);
		jo.put("packing_material", packing_material);
		jo.put("customer_number", customer_number);
		jo.put("customer_name", customer_name);
		jo.put("shipping_address", shipping_address);
		jo.put("tolerance_limit", tolerance_limit);
		jo.put("upper_tolerance", upper_tolerance);
		return jo;
	}
}
